#!/bin/bash
n=$1
javac src/*.java
for ((i = 0 ; i < $n ; i++ ));
do
   java -cp bin Process $i $n &
done
java -cp bin ProcessManager $n